﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace WordsOfLoveServer.Models.Forums
{
	public class WOLDbContext : DbContext
	{
		public WOLDbContext() : base("name = WOLDatabase")
		{
			Database.SetInitializer(new DropCreateDatabaseIfModelChanges<WOLDbContext>());
		}

		public DbSet<ForumPost> ForumPosts { get; set; }
		public DbSet<ForumPostLike> ForumPostLikes { get; set; }
		public DbSet<ForumPostTag> ForumPostTags { get; set; }

		public DbSet<ForumComment> ForumComments { get; set; }
		public DbSet<ForumCommentLike> ForumCommentLikes { get; set; }

		public DbSet<Sentence> Sentences { get; set; }
		public DbSet<SentenceLike> SentenceLikes { get; set; }

		public DbSet<User> Users { get; set; }
	}
}